package com.ruge.seckill.service;

import com.ruge.core.response.Response;
import com.ruge.seckill.domain.request.SaveSeckillCouponRequest;

/**
 * @author ruge.wu
 * @since 2022/1/26 15:55
 */
public interface SeckillCouponService {
    /**
     * 新增秒杀信息
     *
     * @param request {@link SaveSeckillCouponRequest}
     * @return {@link Response}
     */
    Response save(SaveSeckillCouponRequest request);

    /**
     * 抢购代金券
     *
     * @param couponId 优惠券id
     * @param aid
     * @return {@link Response}
     */
    Response doSeckill(String couponId, Long aid);

    /**
     * 代金券列表
     *
     * @return {@link Response}
     */
    Response list();

}
